Del Bai autopost<br>
su dung ?do=del&limit=xxx.
<br>limit la so bai toi da muon del;
<?
if($_GET["do"]=="del")
{

@set_time_limit(0); 
@ini_set('memory_limit', '128M');
require_once("includes/config.php");
	require_once("includes/mysql.php");
		
	$max=$_GET["limit"];
	$q=query("select id,title,image from post where image like '%autopost%' order by id asc limit $max");
	while($r=fetch($q)){
		$image=$r["image"];
		echo $r["title"]."---".$image."<BR>";
		$image = str_replace("http://sv1.tocvasao.net", "/home/tocvasao/public_html/sv1",$image);
		query("delete from post where id=$r[id]");
		unlink($image);
	}
}
?>